package com.example.tilas1.mapper;

import com.example.tilas1.mapper.Sql.DeptMapperProvider;
import com.example.tilas1.pojo.Dept;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DeptMapper {
    @DeleteProvider(type = DeptMapperProvider.class,method = "delete")
//    @Delete("delete from dept where id = #{id}")
    public void delete(Integer id);
    @SelectProvider(type = DeptMapperProvider.class,method = "select")
//     @Select("select * from dept")
     List<Dept> select();

    @InsertProvider(type = DeptMapperProvider.class,method = "insertDept")
    void insert(Dept dept);
}
